package com.ljq.creature;

import com.ljq.transport.*;
import sun.rmi.transport.Transport;

public class Person {
    private String id;
    private  String P_Name;
    private int P_Age;
    private String P_Sex;

    public void driveTransport(Aircraft aircraft){
        System.out.println("driving aircraft"+aircraft.getId());
    }

    public void driveTransport(Airship airship){
        System.out.println("driving airship"+airship.getId());
    }
    public void driveTransport(Automobile automobile){
        System.out.println("driving automobile"+automobile.getId());
    }
    public void driveTransport(Bicycle bicycle){
        System.out.println("driving bicycle"+bicycle.getId());
    }
    public void driveTransport(HotAirBallon hotAirBallon){
        System.out.println("driving hotAirBalloon"+hotAirBallon.getId());
    }
    public void driveTransport(Hovercraft hovercraft){
        System.out.println("driving hovercraft"+hovercraft.getId());
    }
    public void driveTransport(Motorcycle motorcycle){
        System.out.println("driving motorcycle"+motorcycle.getId());
    }
    public void driveTransport(Ship ship){
        System.out.println("driving ship"+ship.getId());
    }
    public void driveTransport(Submarine submarine){
        System.out.println("driving submarine"+submarine.getId());
    }
    public void driveTransport(Train train){
        System.out.println("driving train"+train.getId());
    }
//    public void drivingTransport(Transport transport){
//        transport.drivingMethod();
//    }

    public Person() {
    }

    public Person(String id, String p_Name, int p_Age, String p_Sex) {
        this.id = id;
        P_Name = p_Name;
        P_Age = p_Age;
        P_Sex = p_Sex;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getP_Name() {
        return P_Name;
    }

    public void setP_Name(String p_Name) {
        this.P_Name = p_Name;
    }

    public int getP_Age() {
        return P_Age;
    }

    public void setP_Age(int p_Age) {
        this.P_Age = p_Age;
    }

    public String getP_Sex() {
        return P_Sex;
    }

    public void setP_Sex(String p_Sex) {
        this.P_Sex = p_Sex;
    }

}
